package com.wuh.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import com.wuh.model.Teacher;

@Mapper
public interface TeacherMapper {

	Teacher login(Teacher teacher);

	Integer register(Teacher teacher);

	/**
	 * 修改老师的castle_class_num属性
	 *
	 * @param teacher_id
	 * @return
	 */
	int editTeacherCaslteNum(Integer teacher_id);

	/**
	 * 修改老师的castle_class_num属性
	 *
	 * @param teacher_id
	 * @return
	 */

	int editTeacher(Teacher teacher);

	Teacher getTeacherById(Integer teacher_id);

	int editPasswordById(Teacher techer);

	List<Teacher> getTeachers(Teacher teacher);

	int delTeacherById(int id);

	int freezeTeacherById(int id);

	int unfreezeTeacherById(int id);

	int addTeacher(Teacher teacher);

	/**
	 * 获取所有的teacher信息
	 *
	 * @return
	 */
	List<Teacher> getTeachers();
}
